Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE #7334] registerIncrementBrokerData for single topic update #7335

Merged
merged 1 commit into from
Sep 11, 2023

Conversation

Ziy1-Tan
Copy link
Contributor

Which Issue(s) This PR Fixes

Fixes #7334

Brief Description

How Did You Test This Change?

@codecov-commenter
Copy link

codecov-commenter commented Sep 10, 2023

Codecov Report

Merging #7335 (5195450) into develop (6fd0073) will increase coverage by 0.02%.
Report is 1 commits behind head on develop.
The diff coverage is 20.00%.

@@              Coverage Diff              @@
##             develop    #7335      +/-   ##
=============================================
+ Coverage      42.65%   42.68%   +0.02%     
  Complexity      9466     9466              
=============================================
  Files           1152     1150       -2     
  Lines          82726    82724       -2     
  Branches       10780    10785       +5     
=============================================
+ Hits           35286    35308      +22     
+ Misses         43028    43004      -24     
  Partials        4412     4412              
Files Changed Coverage Δ
...ache/rocketmq/broker/topic/TopicConfigManager.java 55.08% <20.00%> (-1.61%) ⬇️

... and 33 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@Ziy1-Tan Ziy1-Tan changed the title [ISSUE #7334]registerIncrementBrokerData for single topic update [ISSUE #7334] registerIncrementBrokerData for single topic update Sep 10, 2023
@Ziy1-Tan Ziy1-Tan changed the title [ISSUE #7334] registerIncrementBrokerData for single topic update [ISSUE #7334] registerIncrementBrokerData for single topic update Sep 10, 2023
Copy link
Contributor

@RongtongJin RongtongJin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would better to consider singleTopicRegister.

if (brokerController.getBrokerConfig().isEnableSingleTopicRegister()) {
    his.brokerController.registerSingleTopicAll(topicConfig);
} else {
    this.brokerController.registerIncrementBrokerData(topicConfig, dateVersion);
}

@RongtongJin RongtongJin merged commit dad6b4d into apache:develop Sep 11, 2023
9 of 10 checks passed
@joeCarf
Copy link
Contributor

joeCarf commented Sep 11, 2023

I think it's better to abstract to a method

@RongtongJin
Copy link
Contributor

RongtongJin commented Sep 11, 2023

Could you submit a pr to do this? :-) @joeCarf

@joeCarf
Copy link
Contributor

joeCarf commented Sep 11, 2023

Could you submit a pr to do this? :-) @joeCarf

Of course, I'd love to

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Enhancement] registerIncrementBrokerData for single topic update
4 participants